<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>自动投标</title>
  	<script src="../../js/mui.min.js"></script>
    <link href="../../css/mui.min.css" rel="stylesheet"/>
     <link href="../../css/global.css" rel="stylesheet"/>
     <link href="autoBid.css" rel="stylesheet"/>
</head>
<body style="background: #F3F3F3;">
	
	<header class="mui-bar mui-bar-nav title-nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left mui-back-new"></a>
		<h1 id="title" class="mui-title mhd-title">自动投标</h1>
	</header>
	
	<div id="mui-content" class="mui-content" style="height: 100%;">
		<div class="mhd_mb_form">
			 <table width="100%" >			 	
				<tr>
					<td colspan="2">
						<span class = "font-style1">自动投资月利宝</span>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<span class = "font-style2">同时满足以下条件,可以自动投标月利宝:</span>
						<span id="status" class="gbtn "></span>
					</td>					
				</tr>
			</table>
		</div>
		<input type="hidden"  id="cashBalance">
		<form id="theForm" action="" method="post" class="cmw_mb_form">
			<table>
				<tr>
					<td style="color: #333;width:30%"> 单笔投标金额</td>
					<td>
						<input type="text" placeholder="最低100" style="font-size:13px;width: 35%;margin: 10px 0;height: 35px;text-align:right;padding: 10px;" id="minTenderPrice" 
						name="minTenderPrice"  onkeyup="this.value=this.value.replace(/\D|[0-9]{6}/g,'')"/>&nbsp;
						元&nbsp;至&nbsp;<input type="text" placeholder="最高20000" style="font-size:13px;width: 35%;margin: 10px 0;height: 35px;text-align:right;padding: 10px;"id="tenderprice" 
						name="tenderprice"  onkeyup="this.value=this.value.replace(/\D|[0-9]{6}/g,'')"/>&nbsp;元
					</td>
				</tr>
				<!--<tr>
					<td colspan="2" style="color:#d56363">（金额设置为最低100元，最高20000元的整数）</td>
				</tr>-->
				<tr>
					<td style="color: #333;width:30%"> 账户保留金额</td>
					<td >
						<input type="text" style="font-size:13px;width: 35%;margin: 10px 0;height: 35px;text-align:right;padding: 10px;" id="acount" 
						name="acount" value="0" onkeyup="this.value=this.value.replace(/\D|[0-9]{7}/g,'')"/>&nbsp;元
					</td>
				</tr>
				<!--<tr>
					<td colspan="2" style="color:#d56363">（请输入一个金额，这部分金额不会加入自动投标）</td>
				</tr>-->
				<tr>
					<td style="color: #333;width:30%"> 年化利率下限</td>
					<td ><input type="text" placeholder="0%~13%" style="font-size:13px;width: 35%;margin: 10px 0;height: 35px;text-align:right;padding: 10px;" id="yearrate"
										name="yearrate" onkeyup="this.value=this.value.replace(/\D|[0-9]{3}/g,'')"/>&nbsp;%</td>
				</tr>
				<!--<tr>
					<td colspan="2" style="color:#d56363">（请在0%-13%的范围内填写）</td>
				</tr>-->
				<tr>
					<td style="color: #333;width:30%"> 借款期限上限:</td>
					<td ><input type="text" placeholder="0~36" style="font-size:13px;width: 35%;margin: 10px 0;height: 35px;text-align:right;padding: 10px;" id="bbmend"
										name="bbmend" onkeyup="this.value=this.value.replace(/\D|[0-9]{3}/g,'')"/>&nbsp;个月</td>
				</tr>
				<!--<tr>
					<td colspan="2" style="color:#d56363">（请在0个月-36个月的范围内填写）</td>
				</tr>-->
			 </table>
		 </form>
		 <div class="cmw_mb_form_bottom">
			<button id="sub" class="cmw_mb_form_button">开启自动投标</button>			 	
		 </div>   
	</div>
		<div class="prompt">
			<p>
				<div class="Warn">温馨提示：</div>  
				    <div style="padding-left: 1px;">1.自动投标仅适用于月利宝，且需要在新标发布前设置才生效。 </div>
				    <div style="padding-left: 1px;">2. 自动投标具体规则如下：</div>
					<div style="padding-left: 14px;">a. 可用余额少于用户设定的单笔投资区间的最小值，将不进行自动投标。</div>
					<div style="padding-left: 14px;">b. 一般情况下，平台会按照用户设定的单笔投资区间的最大值进行投标。</div>
					<div style="padding-left: 26px;">若账户可用余额少于用户设置的单笔投资区间最大值时，平台也会按照借款标实际可投金额的最大值进行投标。</div>
					<div style="padding-left: 26px;">无论任何情况下，单笔自动投标金额都不会少于用户设定的单笔投资区间的最小值</div>
					<div style="padding-left: 1px;">3. 投标顺序，将按照每一用户设置自动投标的时间先后来安排。</div>
			</p>
		</div>
	<script type="text/javascript" src="../../js/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="../../js/cmw_core.js"></script>
	<script type="text/javascript" src="../../js/constant.js"></script>
	<script type="text/javascript" src="../../js/global.js"></script>
	<script type="text/javascript" src="../../js/form.js"></script>
	<script type="text/javascript" src="autoBid.js"></script>
</body>
</html>